import service from '@/utils/request'
// @Tags SysPrescriptionRecord
// @Summary 创建药方
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.SysPrescriptionRecord true "创建药方"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /sysPrescriptionRecord/createSysPrescriptionRecord [post]
export const createSysPrescriptionRecord = (data) => {
  return service({
    url: '/sysPrescriptionRecord/createSysPrescriptionRecord',
    method: 'post',
    data
  })
}

// @Tags SysPrescriptionRecord
// @Summary 删除药方
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.SysPrescriptionRecord true "删除药方"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sysPrescriptionRecord/deleteSysPrescriptionRecord [delete]
export const deleteSysPrescriptionRecord = (params) => {
  return service({
    url: '/sysPrescriptionRecord/deleteSysPrescriptionRecord',
    method: 'delete',
    params
  })
}

// @Tags SysPrescriptionRecord
// @Summary 批量删除药方
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除药方"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sysPrescriptionRecord/deleteSysPrescriptionRecord [delete]
export const deleteSysPrescriptionRecordByIds = (params) => {
  return service({
    url: '/sysPrescriptionRecord/deleteSysPrescriptionRecordByIds',
    method: 'delete',
    params
  })
}

// @Tags SysPrescriptionRecord
// @Summary 更新药方
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.SysPrescriptionRecord true "更新药方"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /sysPrescriptionRecord/updateSysPrescriptionRecord [put]
export const updateSysPrescriptionRecord = (data) => {
  return service({
    url: '/sysPrescriptionRecord/updateSysPrescriptionRecord',
    method: 'put',
    data
  })
}

// @Tags SysPrescriptionRecord
// @Summary 用id查询药方
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.SysPrescriptionRecord true "用id查询药方"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /sysPrescriptionRecord/findSysPrescriptionRecord [get]
export const findSysPrescriptionRecord = (params) => {
  return service({
    url: '/sysPrescriptionRecord/findSysPrescriptionRecord',
    method: 'get',
    params
  })
}

// @Tags SysPrescriptionRecord
// @Summary 分页获取药方列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取药方列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /sysPrescriptionRecord/getSysPrescriptionRecordList [get]
export const getSysPrescriptionRecordList = (params) => {
  return service({
    url: '/sysPrescriptionRecord/getSysPrescriptionRecordList',
    method: 'get',
    params
  })
}

// @Tags SysPrescriptionRecord
// @Summary 不需要鉴权的药方接口
// @Accept application/json
// @Produce application/json
// @Param data query systemReq.SysPrescriptionRecordSearch true "分页获取药方列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /sysPrescriptionRecord/getSysPrescriptionRecordPublic [get]
export const getSysPrescriptionRecordPublic = () => {
  return service({
    url: '/sysPrescriptionRecord/getSysPrescriptionRecordPublic',
    method: 'get',
  })
}
